package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsGetActivityList;
/**
 * 获取活动列表，用于发表帖子时选择活动，仅需要ID＋名称
 * @author wliu
 * edit tse
 */
public class MomentsGetActivityListResponse extends RudderResponse{
    
    private List<MomentsGetActivityList> getActivityList = new ArrayList<MomentsGetActivityList>();
		
	
    /**
     * @return getActivityList
     */	
    public List<MomentsGetActivityList> getGetActivityList() { 
	    return this.getActivityList;
    };
	
	/**
     * @return getActivityList
     */	
    public void setGetActivityList(List<MomentsGetActivityList> getActivityList) { 
        this.getActivityList = getActivityList;
    };
    
	
        
    private static void filterFor(MomentsGetActivityList moments) {
        if (moments.getActivityId() == null) {
            moments.setActivityId("");
        }
        if (moments.getTitle() == null) {
            moments.setTitle("");
        }
    }
        
    public static void filter(MomentsGetActivityListResponse moments) {
        if (moments.getGetActivityList() == null) {
            moments.setGetActivityList(new ArrayList<MomentsGetActivityList>());
        } else {
            for (MomentsGetActivityList item : moments.getGetActivityList()) {
                filterFor(item);
            }
        }
    }
}
